package com.itheima_9;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Scanner;

public class test_9_2 {
    public static void main(String[] args) {

        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个你年份：");
        int year = sc.nextInt();
        LocalDate of = LocalDate.of(year, 3, 1);
        LocalDate localDate = of.plusDays(-1);
        if(of.getDayOfMonth()==28){
            System.out.println(year+"是平年");
        }else {
            System.out.println(year+"是闰年");
        }

    }
}
